package day6work.animalclasss;

import day6work.interfaceclass.Swim;

public  class Fish extends Animal implements Swim {

    public Fish(int age, String name, String color) {
        super(age, name, color);
    }




    @Override
     public void eat() {
        System.out.println(age+color+name+"爱吃骨头");

    }

    @Override
    public void Swim() {
        System.out.println(name+"在水里游来游去");

    }
}
